- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
NetMRI password change script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 08:18 AM
Hello Everyone,
I am very new to scripting and was tasked to work on a script to change the password on our Cisco ASAs. When running the script I get an error regarding authentication information not found. Not sure where to look for this and where to go next. Below is the error and script.
+++ Looking up authentication information .............................. FAILED
*** ERROR: No authentication information found for device ***
Script-Filter:
$Vendor eq "Cisco"
Script-Variables:
$password password "Password"
########################################################################
Action:
Get Username
Action-Commands:
SET: $UpdateMade = "no"
show run | inc username
Output-Triggers:
Change Password
Trigger:
Change Password
Trigger-Variables:
$username word
Trigger-Template:
username [[$username]] .+
Trigger-Commands: {$UpdateMade eq "no"}
config t
SET: $UpdateMade = "yes"
Trigger-Commands:
username $username password 0 $password
########################################################################
Action:
End and Write Memory
Action-Commands: {$UpdateMade eq "yes"}
End
Write Mem
########################################################################
Re: NetMRI password change script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2019 08:36 AM
It means for that device NetMRI does not have CLI access, check local ACL or add the CLI Creds in the Settings
Twitter: https://twitter.com/sifbaksh
https://sifbaksh.com
Re: NetMRI password change script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2019 12:21 PM
I have added the credentials in the settings and still getting the same error.
Re: NetMRI password change script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2019 12:29 PM
There are a couple possible explanations and solution to this.
- As Sif stated, NetMRI might not have a set of working credentials for that device
- The job might require User credentials, check advanced settings to see if this has been enable
An easy solution for this would be to go to your account settings, edit your account, enable "User CLI Credentials Enabled" and then specify a set of credentials to use for your account.