Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

HUM script

hi,

I've configured a threshold in HUM. I want to run a script when that threshold occurs. I needed the device name in my script so I used the "DeviceName" environmental variable key passe to the script.

The problem is that the DeviceName is not the name but the IP Address.

Is there a way to obtain the device name ?

thanks.

1 REPLY
Cisco Employee

Re: HUM script

No. Right now, the DeviceName environment variable is hardcoded to be the management IP address for DCR. However, if this IP is reverse resolvable, you could use nslookup, host, or dig to get the hostname.

133
Views
0
Helpful
1
Replies
CreatePlease to create content