How do I set the date on an Indigo after replacing battery? -
MetalLevel - 10-16-2021
I have an Indigo with a dead battery.
I replaced the battery and was able to enter the Command Monitor.
When I type 'date' it says 'Command not found'
How do I set the date from here?
Here is a log of the console:
>> date
date: Command not found.
>> hinv
Memory size: 16 Mbytes
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
System option: Audio processor, revision 3
SCSI Disk: dksc(0,1)
CPU board: IP12 33 MHz, with FPU
>> date
date: Command not found.
>> help
Commands:
autoboot: auto
boot: boot [-f FILE] [-n] [ARGS]
eaddr: eaddr
exit: exit
help: help or ? [COMMAND]
initialize: init
inventory: hinv [-v]
list files: ls DEVICE
passwd: passwd
printenv: printenv [ENV_VAR_LIST]
resetenv: resetenv
resetpw: resetpw
setenv: setenv ENV_VAR STRING
single user: single
unsetenv: unsetenv ENV_VAR
version: version
>> version
PROM Monitor SGI Version 4.0.1 Rev D LG1/GR2, Mar 24, 1992
RE: How do I set the date on an Indigo after replacing battery? -
Raion - 10-16-2021
Hi there,
I'm not familiar with the Indigo specifically, but if you type "printenv" what shows up?
If it shows a variable for the date, you set it via setenv
The PROM isn't UNIX after all, don't expect much from it.
RE: How do I set the date on an Indigo after replacing battery? -
weblacky - 10-16-2021
I didn't think the PROMs could do any date/time functions, because they don't care about time. If you want to solve the chicken/egg problem when installing the OS with an incorrect date, I'd say once you boot to miniroot and get to INST.
Do this:
Inst> admin date mmddhhmmccyy
You can display the date again with this command:
Inst> admin date
Info was gotten from here:
http://rsusu1.rnd.runnet.ru/sgi/install/ch3.html#UnderstandingMinirootInstallation
date command from admin is supposed to be same as man date(1), so I added the century "cc" to the above command as that SHOULD work...
Thanks.