cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1919
Views
0
Helpful
5
Replies

Send device hostname in trap message

umeshunited
Level 1
Level 1

I want to send device hostname in trap message. Right now hostname column shows IP address. I want it to reflect device hostname. I tried "logging origin-id hostname" but it did not work. I also tried "logging origin-id string SWITCH1" but no luck

I am having 3650 and running 16.6.5 code.

Below is the show run | in logging output

logging buffered 10000000
no logging console
no logging monitor
hw-switch switch 1 logging onboard message
logging origin-id string SWITCH1
logging host X.X.X.X transport udp port 1000
logging host X.X.X.X transport udp port 10514
logging host X.X.X.X transport udp port 27514
logging host X.X.X.X

1 Accepted Solution

Accepted Solutions

Sorry, Balaji for the delayed response.

I added host entry on the Solarwinds server and then that name was reflecting in the DNS field of the node details.

And I am also getting the hostname in the SNMP trap email alert.

 

Thanks.

 

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

we have seen some old IOS send only IP address and i need to map the information inside syslog mapping host with IP to resolve.

 

can have your IOS version ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Sorry, Balaji for the delayed response.

I added host entry on the Solarwinds server and then that name was reflecting in the DNS field of the node details.

And I am also getting the hostname in the SNMP trap email alert.

 

Thanks.

 

Glad it was working, can you mark as post as solved, so the solution can be used for other community members.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

The configuration seems correct and I am happy that you had resolved your issue. 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

jewfcb001
Level 4
Level 4

logging origin-id string SWITCH1
Is this command is logging or snmp trap ? 

Review Cisco Networking for a $25 gift card