cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2188
Views
0
Helpful
11
Replies

CSPC upgrade to sp-30.0.2-0-0-lnx64

JR Harper
Level 1
Level 1

I have a customer that got dings for several security issues on their CSPC collector during a security server audit.  They are currently running version 2.7.  I logged into the CLI to check for an update and one is available.  I was able to download the file, but when trying to apply the update, I get an error about the file not a directory.  Attached is the output of the apply command that I am getting.  

1 Accepted Solution

Accepted Solutions

Looks like I had the typo this time.

For the last command use this:

chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip

View solution in original post

11 Replies 11

CC Cisco
Cisco Employee
Cisco Employee

Can you please run the below commands as root and share their output:

####

ls -larth /opt/LCM/tmp
unzip -l /opt/LCM/tmp/sp-30.\*.zip

tail -50 /opt/LCM/logs/apply
tail -50 /opt/LCM/logs/install


####

Cesar

I don’t seem to be able to log in as root I guess. I tried from the regular linux login but getting an error.  I reset the root password but still unable to log in.  Below is the output.

 

[collectorlogin@localhost ~]$ ls -larth /opt/LCM/tmp unzip -l /opt/LCM/tmp/sp-30.\*.zip tail -50 /opt/LCM/logs/apply tail -50 /opt/LCM/logs/install

ls: invalid option -- '5'

Try `ls --help' for more information.

 

admin# pwdreset root 90

 

Password for 'root' reset to - *** successfully

Password expires in 90 days

Shell is enabled

passwd: all authentication tokens updated successfully

 

*** Please memorize the new password ***

Lost passwords cannot be recovered. The only alternative to recover is to reinstall the server.

 

Text has been masked to preserve data privacy.  Please provide sensitive information via private message, and only at the request of our experts. Thank you!

Hey JR Harper,

 

Did you sudo up from collectorlogin by running command 'su'?  You can't log directly into root account but can sudo up from collectorlogin access.

 

Thanks,
Justin

In addition, each command is a separate command. Enter one at a time.

I tried it at first which is the top portion of this attached file then downloaded the file again from the CLI and ran the commands again that suggested.  The 2nd set in this file is after re-downloading the file.  Thanks

I think I see the issue.

 

It looks like the file might have been written to the wrong name.

We could try to solve this by performing the following:

 

Run the commands as root:

 

mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
mkdir /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip

 

Then go back into adminshell and try to rerun the apply command.

After about ten minutes you can go back and rerun all the same commands as in the previous post and share their output.

 

Cesar

Thanks for your reply.  I am getting an error on finding the directory.  Below is the output.  Thanks

 

[root@localhost collectorlogin]#
[root@localhost collectorlogin]# mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
[root@localhost collectorlogin]# mkdir /opt/LCMtmp
[root@localhost collectorlogin]# chown casuser:casuser /opt/LCM/tmp
chown: invalid group: `casuser:casuser'
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
chown: cannot access `/opt/LCM/tmp': No such file or directory
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
chown: cannot access `/opt/LCM/tmp': No such file or directory
[root@localhost collectorlogin]# mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
chown: cannot access `/opt/LCM/sp-30.0.2-0-0-lnx64-package.zip': No such file or directory
[root@localhost collectorlogin]#

Looks like you had a couple of typos:

 

 

Please try the below now: (if possible, copy and paste to avoid typos).

 

mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
mkdir /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp
mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip

Re__CSPC_upgrade_to_sp-30_0_2-0-0-lnx64_-_Cisco_Support_Community.jpg

Good catch.  I looked that over and didn't catch the first one.  I tried again and am getting an error on the last line of "no such file or directory".  Is it possible that I have move this from the original directory and that is why it isn't finding it now?  Should I try to downloading it again to get it where I can move it correctly. Thanks

 

[root@localhost collectorlogin]#
[root@localhost collectorlogin]# mv /opt/LCM/tmp /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
[root@localhost collectorlogin]# mkdir /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/tmp
[root@localhost collectorlogin]# mv /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip /opt/LCM/tmp
[root@localhost collectorlogin]# chown casuser:casusers /opt/LCM/sp-30.0.2-0-0-lnx64-package.zip
chown: cannot access `/opt/LCM/sp-30.0.2-0-0-lnx64-package.zip': No such file or directory
[root@localhost collectorlogin]#

Looks like I had the typo this time.

For the last command use this:

chown casuser:casusers /opt/LCM/tmp/sp-30.0.2-0-0-lnx64-package.zip

That did it.  Thanks for your help on this.