$ ls |grep -i file
–file1
$ rm –file1
rm: illegal option — file1
usage: rm [-fiRr] file …
$ rm “–file1”
rm: illegal option — file1
usage: rm [-fiRr] file …
Solution:
$ rm ./–file1
$ ls|grep -i file
If you have not enabled https on your M series servers, this is how you enable it.
1) Login to the ILOM CLI and issue below command to create the user “user1”
-> create /SP/users/user1 Creating user… Enter new password: ********* user1 Enter new password again: *********user1 Created /SP/users/user1
2) Set the role for the user you just created, I am providing administrator role for the user “user1” and setting mode for the user to alom so that whenever this user logs in, he will be logged in to the alom and not ilom. Please refer this link switch-between-alom-and-ilom-on-sparc for switching the modes from alom to ilom and vice versa.
-> set /SP/users/user1 role=Administrator cli_mode=alom Set ‘role’ to ‘Administrator’ Set ‘cli_mode’ to ‘alom’
-> cd /SP/diag/snapshot
-> set dump_uri=ftp://<valid_ftpuser>@ip_address//<directory> Enter remote user password: ******* Set ‘dump_uri’ to ‘ftp://root@<ip_address>//tmp’
-> show /SP/diag/snapshot Targets: Properties: dataset = normal dump_uri = (Cannot show property) encrypt_output = false result = Running <– check for completed status
-> show /SP/diag/snapshot Targets: Properties: dataset = normal dump_uri = (Cannot show property) encrypt_output = false result = Collecting data into ftp://root@<ip_address>//tmp/v4v-t5120a-sp_<ip_address>_2013-08-10T17-43-27.zip Snapshot Complete.
Do not ever change the file permissions of rsa and dsa keys. I was working on troubleshooting some ssh issue and I decided to give read permissions to everyone on file /etc/ssh/ssh_host_rsa_key and the next thing I know I cant login to the server via ssh.
#ssh testbox01 no hostkey alg #ls -l /etc/ssh/ssh_host_rsa_key -rw——-. 1 root ssh_keys 1679 Nov 25 2014 ssh_host_rsa_key #ls -l /etc/ssh/ssh_host_dsa_key -rw——- 1 root root 668 Aug 20 2007 /etc/ssh/ssh_host_dsa_key #ls -l /etc/ssh/ssh_host_rsa_key.pub
#ls -l /etc/ssh/ssh_host_dsa_key.pub -rw-r–r–. 1 root root 382 Nov 25 2014 ssh_host_dsa_key.pub